<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/layout.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>平方网建材网</title>
    <link href="/temp/css/iframe.css" rel="stylesheet" type="text/css" />
    <link href="/temp/css/default.css" rel="stylesheet" type="text/css" />
    <link href="/temp/css/top.css" rel="stylesheet" type="text/css" />
    <link href="/temp/css/right.css" rel="stylesheet" type="text/css" />
    <link href="/temp/css/page.css" rel="stylesheet" type="text/css" />
    <link href="/temp/scripts/jqtransformplugin/jqtransform.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/common/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="/temp/scripts/jqtransformplugin/jquery.jqtransform.js"></script>
    <script src="/common/json2.js" type="text/javascript"></script>
    <script src="/common/jsmart.js" type="text/javascript"></script>
    
    <script src="/temp/scripts/default.js" type="text/javascript"></script>
    <script src="/temp/scripts/urledit.js" type="text/javascript"></script>
    <script src="/temp/scripts/search.js" type="text/javascript"></script>

    <script language="javascript">
        String.prototype.Trim = function () {
            return this.replace(/(^\s*)|(\s*$)/g, "");
        }  
        $(function () {
            $('form').jqTransform({ imgPath: 'img/' });
        });
    </script>
</head>
<body>
    <center>
        <div id="box">
            <div id="top">
                <!-- top_up -->
                <div class="top_up">
                    <div class="fl">
                        <img src="/temp/resources/images/top_up_bs.jpg" width="148" height="24">
                    </div>
                    <div class="fl top_bs_title">
                        <a href="#">旗下网站</a>
                    </div>
                    <div class="fr top_phone">
                        热线电话: 65377007*8007</div>
                </div>
                <!-- top_logo -->
                <div class="nf top_down">
                    <div class="top_left fl">
                        <div class="top_logo_up">
                            <img src="/temp/resources/images/top_logo.png" width="280" height="62" style="cursor: pointer;"
                                onclick="javascript:window.location='/home.html';" title="平方建材网">
                        </div>
                        <div class="top_logo_down">
                        </div>
                        <div class="top_up_hb">
                        </div>
                    </div>
                    <!-- top_main -->
                    <div class="top_main fl">
                        <img src="/temp/resources/images/top_center_bj.png" width="289" height="178" border="0" usemap="#Map"
                            class="ok_img">
                        <map name="Map" id="Map">
                            <area shape="rect" coords="19,73,78,93" href="#" onclick="sethome(this, window.location)"
                                title="设为首页">
                            <area shape="rect" coords="42,30,99,48" href="#" title="会员区">
                            <area shape="rect" coords="110,3,151,17" href="help.html" title="帮助">
                            <area shape="rect" coords="200,32,259,50" href="#" onclick="window.external.addFavorite('http://www.m2.com.cn','平方建材网');"
                                title="添加收藏">
                            <area shape="rect" coords="231,72,285,89" href="home.html" title="返回主页">
                        </map>
                    </div>
                    <!-- top_right -->
                    <div class="top_right fr">
                        <!-- top_right_username -->
                        <div class="top_right_yh">
                            <div class="top_right_yh">
                                <div class="quit fr">
                                    <div class="fl dl">
                                        <a style="_line-height: 18px; font-size: 13px;" href="login.html" target="_blank"
                                            id="urllogin">登录</a></div>
                                    <div class="fl zc">
                                        <a style="_line-height: 18px; font-size: 13px;" href="#">注册</a></div>
                                </div>
                                <div class="welcome fr not_login" style="font-size: 13px; color: #00A0C6;">
                                    你还未登录</div>
                            </div>
                        </div>
                        <!-- top_right_search -->
                        <div class="nf top_right_search">
                            <div>
                                <form>
                                <div class="jqTransformSelectWrappere">
                                        <select id="mainsearchtype">
                                            <option value="建材">建材</option>
                                            <option value="供应商">供应商</option>
                                        </select>
                                </div>
                                </form>
                                <div class="fl sousuo_wbk">
                                    <input name="" type="text" style="" class="top_wbk ui-autocomplete-input" id="mainsearchinput"
                                        autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"></div>
                                <div class="fl an">
                                    <a href="#" id="mainsearch" onclick="topsearch()">快速搜索</a></div>
                            </div>
                        </div>
                        <div class="nf gjz">
                            <ul>
                                <li style="color: #8F9193">关键字</li>
                            </ul>
                        </div>
                    </div>
                    <div class="nf">
                    </div>
                    <!-- top_menu -->
                    <div class="nf top_menu">
                        <div class="top_menu_center">
                            <ul>
                                <li>
                                    <div class="lx fl">
                                    </div>
                                    <div class="fl dh">
                                        <a href="/temp/home.html">首页</a></div>
                                </li>
                                <li>
                                    <div class="lx fl">
                                    </div>
                                    <div class="fl dh">
                                        <a href="/temp/categorylist.html">材料信息</a></div>
                                </li>
                                <li>
                                    <div class="lx fl">
                                    </div>
                                    <div class="fl dh">
                                        <a href="/temp/search/supplier.html">厂商信息</a></div>
                                </li>
                                <li>
                                    <div class="lx fl">
                                    </div>
                                    <div class="fl dh">
                                        <a href="#">无忧询价</a></div>
                                </li>
                                <li>
                                    <div class="lx fl">
                                    </div>
                                    <div class="fl dh">
                                        <a href="#">快递查询</a></div>
                                </li>
                                <li>
                                    <div class="lx fl">
                                    </div>
                                    <div class="fl dh">
                                        <a href="#" id="specialmenu"></a>
                                    </div>
                                </li>
                            </ul>
                        </div>
                        <div class="top_up_zh">
                        </div>
                    </div>
                </div>
            </div>
            <!-- InstanceBeginEditable name="EditMain" -->
            <link href="/temp/css/cpfl.css" rel="stylesheet" type="text/css" />
            <div id="main">
                 <div class="clfl_top">
                    <ul id="hotcategorylist">
                    </ul>
                </div>
                <!-- main_left -->
			    <link href="/temp/css/gysqy.css" rel="stylesheet" type="text/css" />
                <div id="left" class="fl">
                    <!-- left_menu -->
                    <div class="left_menu">
                        <div class="left_menu_left fl">
                        </div>
                        <div class="left_menu_center fl">
                            <div class="left_menu_center_bt">
                                <div class="fl">
                                    产品分类</div>
                                <div class="fr left_menu_more">
                                </div>
                            </div>
                        </div>
                        <div class="left_menu_right fr">
                        </div>
                        <!-- left_menu_nr -->
                        <div class="left_show_nr nf">
							<ul id="categorylist">                          
                    		</ul>
                        </div>
                    </div>
                </div>
				<link href="/temp/css/clxq.css" rel="stylesheet" type="text/css" />
                <div id="right" class="fl">
                    <div class="gysqy_right">
                        <div class="right_zxjm_title">最新产品</div>
                        <div class="clxq_lb">
                            <div>
								<ul>
                                    <li><a href="/Product/Index?pId=786618" target="_blank" title="塑料门窗 - 上海瀚阳门窗有限公司">塑料门窗 - 上海瀚阳门窗有限公司</a></li>
                                    <li><a href="/Product/Index?pId=954060" target="_blank" title="热电偶 - 武汉德力西电气元件销售有限公司">热电偶 - 武汉德力西电气元件销售有限公司</a></li>
                                    <li><a href="/Product/Index?pId=954059" target="_blank" title="热电偶 - 武汉德力西电气元件销售有限公司">热电偶 - 武汉德力西电气元件销售有限公司</a></li>
                                    <li><a href="/Product/Index?pId=954058" target="_blank" title="热电偶 - 武汉德力西电气元件销售有限公司">热电偶 - 武汉德力西电气元件销售有限公司</a></li>
                                    <li><a href="/Product/Index?pId=954057" target="_blank" title="热电偶 - 武汉德力西电气元件销售有限公司">热电偶 - 武汉德力西电气元件销售有限公司</a></li>
                                    <li><a href="/Product/Index?pId=954056" target="_blank" title="热电偶 - 武汉德力西电气元件销售有限公司">热电偶 - 武汉德力西电气元件销售有限公司</a></li>
                    			</ul>
                            </div>
                            <div class="right_zxjm_more">
                                <a href="#">更多&gt;&gt;</a>
                            </div>
                        </div>
                    </div>

                    <div class="right_zxjm" style="margin-top: 10px; height: 310px;">
                        <div class="right_zxjm_title">
                            高级搜索</div>
                        <div class="gjss_nr">
                            <form action="#" method="post" >
                            <div class="fl gjss_wz">
                                材料名称</div>
                            <div class="fl">
                                <input id="searchName" type="text" class="gjss_wbk" maxlength="50"></div>
                            <div class="nf">
                            </div>
                            <div class="fl gjss_wz">
                                品牌</div>
                            <div class="fl">
                                <input id="searchBrand" name="" type="text" class="gjss_wbk" maxlength="50"></div>
                            <div class="nf">
                            </div>
                            <div class="fl gjss_wz">
                                规格型号</div>
                            <div class="fl">
                                <input id="searchSpec" name="" type="text" class="gjss_wbk" maxlength="50"></div>
                            <div class="nf">
                            </div>
                            <div class="fl gjss_wz">
                                厂商名</div>
                            <div class="fl">
                                <input id="searchManufacturer" name="" type="text" class="gjss_wbk" maxlength="50"></div>
                            <div class="nf">
                            </div>
                            <div class="fl gjss_wz">
                                价格(元)</div>
                            <div class="fl" style="width: 168px;">
                                <div class="fl">
                                    <span onclick="javascript:alert('请登录');">
                                        <input class="jg_wbk" maxlength="50" id="searchlPrice" onkeyup="value=value.replace(/[^\d]/g,'')"
                                            onbeforepaste="clipboardData.setData('text', clipboardData.getData('text').replace(/[^\d]/g, ''))"
                                            name="" type="text" disabled="true"></span>
                                </div>
                                <div class="fl gjss_x">
                                    <img src="/temp/resources/images/jg_x.jpg"></div>
                                <div class="fl">
                                    <span onclick="javascript:alert('请登录');">
                                        <input class="jg_wbk" maxlength="50" id="searchhPrice" onkeyup="value=value.replace(/[^\d]/g,'')"
                                            onbeforepaste="clipboardData.setData('text', clipboardData.getData('text').replace(/[^\d]/g, ''))"
                                            name="" type="text" disabled="true"></span>
                                </div>
                                <div class="nf">
                                </div>
                            </div>
                            <div class="nf">
                            </div>
                            <div class="fl gjss_wz">
                                日期范围</div>
                            <div class="fl">
                                <div class="jqTransformSelectWrappere">


                                        <select id="searchDate" style="width: 140px;">
                                            <option value="">不限</option>
                                            <option value="7">一周之内</option>
                                            <option value="14">两周之内</option>
                                            <option value="30">一月之内</option>
                                            <option value="365">一年之内</option>
                                        </select>
                                </div>
                            </div>
                            <div class="nf">
                            </div>
                            <div class="fl gjss_wz">
                            </div>
                            <div class="fr">
                                <input name="" type="button" value="" id="search_require" class="gjss_an"  onclick="productsearch()"></div>
                            <div class="nf">
                            </div>
                            </form>
                        </div>
                    </div>
                    
					<iframe allowtransparency="true" src="/temp/partial/recsupplierads.html" frameborder="0" id="txqy_iframe" scrolling="no"></iframe>
                </div>
            </div>
            
            <script  id="hotcategory" type="text/x-jsmart-tmpl">
				<li>热门分类：</li>				
				{foreach $categories as $j => $category}					
                 	<li><a href="/search/product?id={$categories[$j]}" target="_blank" title="{$categories[$j]}">{$categories[$j]}</a></li>
				{/foreach}
			</script>
            
            	<!--数据绑定模板  分类-->
            	<script id="category" type="text/x-jsmart-tmpl">  
					{foreach $rows as $j => $firstcategory}
						{if ($j %2 != 0)}						
                        {$newtop = (($j-1) / 2) * 133.7 + 364;}
                        {$_newtop = (($j-1) / 2) * 133.7 + 374;}
						{else}	
                        {$newtop = ($j / 2) * 133.7 + 364;}
                        {$_newtop = ($j / 2) * 133.7 + 374;}
						{/if}
                        {$pos_y = $newtop + "px";}
                        {$_pos_y = $_newtop + "px";}
                        {$newleft = "";}
                        {$_newleft = "-682px";}
                        {$newleft7 = "-693px";}
                        {if ($j % 2 == 1)}
                            {$newleft = "346px";}
                            {$_newleft = "-331px";}
                            {$newleft7 = "-346px";}
						{/if}
						<li class="normal">			
							<div class="left_show_title">			
								<a href="/search/product?code={$firstcategory.value.code}" title="{$firstcategory.value.name}">{$firstcategory.value.name}</a></div>			
							<div class="left_show_wz">			
								{foreach $firstcategory.value.childs as $name => $secondcategory}			
								<a href="/search/product?code={$secondcategory.code}" title="{$secondcategory.name}">{$secondcategory.name}</a>			
								{/foreach}			
							</div>			
						</li>		
						<li class="left_show_xx" style="position: absolute;top:{$pos_y};_top:{$_pos_y};margin-left:{$newleft};height:auto; *+margin-left:{$newleft7}; -margin-left:{$_newleft};display:none; ">
                            <div class="left_show_title left_show_xx_bt">
                                <a href="/search/product?code={$firstcategory.value.code}" title="{$firstcategory.value.name}">{$firstcategory.value.name}</a></div>
                            <div class="left_show_wz left_show_xx_nr" style="height:auto;">
								{foreach $firstcategory.value.childs as $name => $secondcategory}			
									<a href="/search/product?code={$secondcategory.code}" title="{$secondcategory.name}">{$secondcategory.name}</a>			
								{/foreach}
                            </div>
                        </li>	
					{/foreach}			
				</script>            
            <script>
				var current = $(".top_menu_center ul li")[1].children[1].children[0];
				$(current).addClass("current hasCurrent");

				$(".left_show_xx").hide();
				$(".normal .left_show_title").live("mouseenter", function () {
					$(".left_show_xx").hide();
					var temp = $(this).parent().next();
					$(this).parent().next().show();
				});
			
				$(".normal .left_show_wz").live("mouseenter", function () {
					$(".left_show_xx").hide();
					var temp = $(this).parent().next();
					$(this).parent().next().show();
				});
				$(".left_show_xx").live("mouseleave", function () {
					$(this).hide();
				})
		
				$(document).ready(
					function(){
						//热门分类
						$.ajax({
							url: '/service/_view/getHotCategory?reduce=false',
							type: 'GET',
							dataType: 'json',
							success:function(data){
								var tpl = new jSmart(document.getElementById('hotcategory').innerHTML);
								var res = tpl.fetch(data.rows[0].value);
								$("#hotcategorylist").html(res);
							}
						});
						
						//常用分类
						$.ajax({
							url: '/service/_view/getCategory?reduce=false',
							type: 'GET',
							dataType: 'json',
							success:function(data){
								var tpl = new jSmart(document.getElementById('category').innerHTML);
								var res = tpl.fetch(data);
								$("#categorylist").html(res);
							}
						});
					}
				);
			</script>			            	            
			<!-- InstanceEndEditable -->
            <script id="page" type="text/x-jsmart-tmpl">
				<div class="page">
					<div class="pagination">
						{if $pagecount > 1}			
							<a class="pageNum"><b>
							{$currentpage}
							</b>/<b>
							{$pagecount}
							</b></a>	
							{if (1 != $currentpage)}
								<a href="{urlset('pageIndex', 1)}" class="first">首页</a>
								<a href="{urlset('pageIndex', $currentpage-1)}" class="prev">上一页</a>
							{/if}	
							
							{for $i=$start to $end}
								{if ($i == $currentpage)}
									<span class="current">{$i}</span>
								{else}
									<a href="{urlset('pageIndex', $i)}">{$i}</a>
								{/if}
							{/for}
							
							{if ($pagecount != $currentpage)}
								<a href="{urlset('pageIndex', $currentpage+1)}" class="first">下一页</a>
								<a href="{urlset('pageIndex', $pagecount)}" class="last">尾页</a>
							{/if}	
						{/if}
					</div>
				</div>
			</script>            
            <script id="count" type="text/x-jsmart-tmpl">
			共 {$rows.length} 条记录
			</script>    
            <script id="searchcount" type="text/x-jsmart-tmpl">
			共 {$result.hits.total} 条记录
			</script>
            <div class="nf">
            <iframe allowtransparency="true" src="/temp/partial/bottom.html" frameborder="0" id="bottom_iframe" scrolling="no"></iframe>
            </div>
        </div>
    </center>
</body>
<!-- InstanceEnd --></html>
